package com.rgs.ssm.service.impl;

import com.github.pagehelper.PageHelper;
import com.rgs.ssm.dao.ISysLogDao;
import com.rgs.ssm.domain.SysLog;
import com.rgs.ssm.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Ren Gaoshuai
 * @date 2021-06-01 22:47
 **/
@Service
@Transactional
public class SysLogService implements ISysLogService {


    @Autowired
    private ISysLogDao sysLogDao;

    @Override
    public List<SysLog> findAll(Integer page, Integer size) {
        PageHelper.startPage(page,size);
        return sysLogDao.findAll();
    }


    @Override
    public void save(SysLog sysLog) {
        sysLogDao.save(sysLog);
    }
}
